package com.mingqijia.gassafety.authority.api.resp.manager;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.mingqijia.gassafety.authority.api.resp.company.CompanyLiteRespDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 管理员登录权限等信息汇总
 * @author Damon S.
 * @version v0.2
 * @date {YEAR}年{MONTH}月{DAY}日 {TIME}
 */
@Data
@ApiModel(value = "用户权限信息")
public class UserProfileRespDTO implements Serializable {
    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "账号类型：1平台账号,3企业账号")
    private Integer type;

    @ApiModelProperty(value = "角色")
    private List<String> roleIds;

    @ApiModelProperty(value = "最近使用的企业")
    private String workingSpId;

    @ApiModelProperty(value = "本安Token（临时）")
    private String benToken;

    @ApiModelProperty(value = "登出地址（VCC）")
    private String logoutUrl;

    @ApiModelProperty(value = "有权限的企业")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CompanyLiteRespDTO> authorizedSp;

    @ApiModelProperty(value = "系统选项")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Object> systemOptions;
}
